package com.ddx.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class UserController {

    @RequestMapping(value = "/quick1")
    public ModelAndView quick1() {
        System.out.println("浏览器访问");
        ModelAndView modelAndView = new ModelAndView();
        modelAndView.addObject("name", "杜东旭");
        modelAndView.setViewName("quick1");
//        return "/success";
        return modelAndView;
    }

    @RequestMapping(value = "/quick2")
    public String quick2() {
        System.out.println("浏览器访问");
        return "quick2";
    }


    @RequestMapping(value = "/quick3")
    public String quick3() {
        System.out.println("浏览器访问");
        return "quick3";
    }
}
